import React from 'react';
import immutable from 'immutable';

class Subcomp extends React.Component {
  shouldComponentUpdate(nextProps){
    const oldValue = this.props.data;
    const newValue = nextProps.data;
    if(immutable.is(oldValue,newValue)){
      return false
    } else{
      return true;
    }
  }
  render(){
    console.log('Subcomp--render------------->');
    return(
      <div>Subcomp</div>
    )
  }
}
export default Subcomp